package com.gec.hawaste.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
//专门负责跳转页面
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class SysController {
	
	//一级路径
	@RequestMapping("{url}.html")
	public String url(@PathVariable("url") String url){
		
		return url;
	}
	//二级匹配
	@RequestMapping("{moudle}/{url}.html")
	public String pape2(@PathVariable("moudle") String moudle,
						@PathVariable("url")String url){
		
		return moudle+"/"+url;
	}
	//三级匹配
	@RequestMapping("{moudle}/{classify}/{url}.html")
	public String page3(@PathVariable("moudle")String moudle,
						@PathVariable("classify")String classify,
						@PathVariable("url")String url){
		return moudle+"/"+classify+"/"+url;
	}
	//四级匹配
		@RequestMapping("{moudle}/{classify}/{classify1}/{url}.html")
		public String page3(@PathVariable("moudle")String moudle,
							@PathVariable("classify")String classify,
							@PathVariable("classify1")String classify1,
							@PathVariable("url")String url){
			return moudle+"/"+classify+"/"+classify1+"/"+url;
		}
}
